<?php
require_once("../../PathHelper.php");
require_once $rootPath.'Gazzetta.BL/RSSReader.php';
require_once $rootPath.'Gazzetta.DAL/Repositories/RSSSourceRepository.php';
require_once $rootPath.'Gazzetta.Entities/RSSSource.php';
try 
{
    
	$rssReader = new RSSReader();
	$results = $rssReader->processRSSs();
    
    foreach($results as $result)
    {
        echo 'RSS:'.$result->getLink();
        echo '</br>';
        echo '-Procesados:'.$result->getProcessed();
        echo '</br>';
        echo '-Agregados:'.$result->getAdded();
        echo '</br>';
        echo '</br>';
    }
	
} 
catch (Exception $e)
{
	echo ' ' . $e->getMessage();
}

?>